<?php
/**
 * Created by PhpStorm.
 * User: zjx
 * Date: 2016/11/25
 * Time: 10:32
 */

namespace App\Services\Utils;

use App\Exceptions\AdminManageException;
use App\Exceptions\CustomViewException;
use App\Services\BymAdmin\AdminErrCode;

trait CustomChecker
{
    // 控制器返回错误到blade
    protected function throwError( $error_msg = "操作失败，请重试" )
    {
        throw new CustomViewException($error_msg);
    }


}